/*年轻人，只管向前看，不要管自暴自弃者的话*/
package com.znb.okdown

import android.app.Application
import android.content.Context
import com.znb.okdown.flutter.FlutterCacheManager

/**
 * create by itz on 2024/1/16 17:19
 * desc :
 **/
class App : Application() {

    companion object {
        var context: Context? = null

        fun getAppContext(): Context {
            return context!!
        }
    }

    override fun onCreate() {
        super.onCreate()
        context = this.applicationContext
        FlutterCacheManager.instance.preLoad(this)
    }
}